<template>
	<view>
		<u-subsection :list="list" bgColor='white' active-color="white" buttonColor='#787878' mode="button"
			:current="curNow" @change="sectionChange"></u-subsection>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '日跌涨幅'
					},
					{
						name: '近一周'
					},
					{
						name: '近一月'
					},
					{
						name: '近三月'
					}, {
						name: '更多'
					}
				],
				curNow: 0
			}
		},
		methods: {
			sectionChange(index) {
				this.curNow = index;
			}
		}
	}
</script>

<style scoped>

</style>